import type { GenerateStyle, ProAliasToken } from "@ant-design/pro-components";
import { useStyle as useAntdStyle } from "@ant-design/pro-components";
export { resetComponent } from "@ant-design/pro-components";
export interface TechUIToken extends ProAliasToken {
  componentCls?: string;
  techUiCls: string;
}

export function useTechUIStyle(
  componentName: string,
  fn: GenerateStyle<TechUIToken>
) {
  return useAntdStyle(componentName, (token) => {
    const techUiToken: TechUIToken = {
      ...token,
      techUiCls: ".tech",
    };
    return [fn(techUiToken)];
  });
}
